import isFunction from "./isFunction";

export default function isFunctionComponent (virtualDom) {
  const type = virtualDom.type
  return virtualDom && isFunction(virtualDom) && !(type.prototype && type.prototype.render)
}